package com.project.design.singleton;

/**
 * 静态内部类
 */
public class StaticSingleton {

    private StaticSingleton(){}

    private static class StaticClassSingleton{
        static StaticSingleton instance = new StaticSingleton();
    }

    public static StaticSingleton getInstance(){
        return StaticClassSingleton.instance;
    }

}
